import { defineConfig } from 'vite';
// @vitejs/plugin-react-swc  将babel变为了swc
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    // https://www.npmjs.com/package/@vitejs/plugin-react
    react({
      babel: {
        parserOpts: {
          plugins: ['decorators-legacy'],
        },
      },
    }),
  ],
});
